//
// Created by dreamli on 2025/11/7.
//

#ifndef XITONG_SHAOKAO_FOODS_MESSAGE_CONTROL_H
#define XITONG_SHAOKAO_FOODS_MESSAGE_CONTROL_H
typedef struct {
    int foods_id;
    char foods_name[20];
    float price;
    int category_id;
    char description[50];
    int   stock_id;
}foods_messages;
//插入菜品
int foods_message_insert();
//添加菜品
int foods_message_add(foods_messages * message);
//更新菜品
int foods_message_update(foods_messages * pmessage);
//删除菜品
int foods_message_delete(int id);
int foods_message_callback(void *data,int argc,char **argv,char **arg_col_name);
//查询菜品
int foods_message_query();

#endif //XITONG_SHAOKAO_FOODS_MESSAGE_CONTROL_H
